<?php

namespace AuctionCore\System;

/**
 * 设备操作 单元测试
 * @author       sam
 */
class AppDeviceTest extends \PHPUnit_Framework_TestCase {

    public function testSave() {

    	$dev = new \AuctionCore\System\AppDevice();
    	$rand = time();
    	$info = array('dev_uuid'=>'uuid1'.$rand,'dev_uid'=>'uid1'.$rand,'dev_jpush_id'=>'jpushid1'.$rand);
    	$ok = $dev->save($info);
    	$this->assertTrue(intval($ok)>0);
        
    }

}
